﻿#region Version Info
/* ========================================================================
* 【本类功能概述】
* 
* 作者：李荣楠
* 时间：2013-10-30 13:43:00
* 文件名：EnumeRates
* .net版本：4.0 
* ========================================================================
*/
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LCL.Entity
{
    #region 实体类相关枚举
    public enum FieldType
    {
        /// <summary>
        /// 主键
        /// </summary>
        Primary ,
        /// <summary>
        /// 一般字段
        /// </summary>
        ordinary ,
        /// <summary>
        /// 外联字段
        /// </summary>
        External
    }
    #endregion
    
    #region 用户状态枚举
    /// <summary>
    /// 用户登录状态
    /// </summary>
    public enum EnumLoginState
    {
        /// <summary>
        /// 超时或未登录
        /// </summary>
        Err_TimeOut,
        /// <summary>
        /// 管理员超时或未登陆
        /// </summary>
        Err_AdminTimeOut,
        /// <summary>
        /// 管理员被锁定
        /// </summary>
        Err_AdminLocked,
        /// <summary>
        /// 用户被锁定
        /// </summary>
        Err_Locked,
        /// <summary>
        /// 用户编号不存在
        /// </summary>
        Err_UserInexistent,
        /// <summary>
        /// 用户IP被限制
        /// </summary>
        Err_IPLimited,
        /// <summary>
        /// 用户权限不足
        /// </summary>
        Err_NoAuthority,
        /// <summary>
        /// 发生数据库异常
        /// </summary>
        Err_DbException,
        /// <summary>
        /// CookesERR
        /// </summary>
        Err_CookesERR,
        /// <summary>
        /// 登录状态正常
        /// </summary>
        Succeed,
        /// <summary>
        /// 帐号未(通过电子邮件)激活
        /// </summary>
        Err_UnActivation,
        /// <summary>
        /// 用户名或密码错误
        /// </summary>
        Err_NameOrPwdError,
        /// <summary>
        /// 非管理员
        /// </summary>
        Err_NotAdmin,
        /// <summary>
        /// 连续登录错误锁定
        /// </summary>
        Err_DurativeLogError,
        /// <summary>
        /// 会员组超期
        /// </summary>
        Err_GroupExpire,
        /// <summary>
        /// ip发生了变化
        /// </summary>
        Err_IPChange
    }
    /// <summary>
    /// 会员状态
    /// </summary>
    public enum EnumUserState
    {
        /// <summary>
        /// 刚刚注册
        ///</summary>
        Register = 0,
        /// <summary>
        /// 用户被锁定
        /// </summary>
        Lock = 1,
        /// <summary>
        /// 状态正常，但未通过电子邮件验证
        /// </summary>
        NormalNotEmail = 2,
        /// <summary>
        /// 状态正常，但未捆绑手机
        /// </summary>
        NormalNotMoblie = 3,
        /// <summary>
        /// 正常状态
        /// </summary>
        Normal = 5
    }
    /// <summary>
    /// 注册反回情况
    /// </summary>
    public enum EnumRegister
    {
        /// <summary>
        /// 成功
        /// </summary>
        Succeed = 0,
        /// <summary>
        /// 注册成功，但未通过电子邮件验证
        /// </summary>
        SucceedNotMail = 4,
        /// <summary>
        /// Email已存在
        /// </summary>
        EmailRepeat = 1,
        /// <summary>
        /// 已接受邀请而注册
        /// </summary>
        RegInviteCode = 2,
        /// <summary>
        /// 无效的验证码
        /// </summary>
        InvalidCode = 3,
        /// <summary>
        /// 其他错误
        /// </summary>
        UnexpectedError = 5,
        /// <summary>
        /// 用户注册写入数据库后,可能Email未能发送成功
        /// </summary>
        EmailMayNotSend = 6
    }
    #endregion
}
